import request from '@/utils/request'

export function getCompanyList(query) {
  return request({
    url: '/logistics/company/getList',
    method: 'post',
    data: query
  })
}

export function getCompanyUsableList(query) {
  return request({
    url: '/logistics/company/getAvailable',
    method: 'post',
    data: query
  })
}

export function getCompanyDetail(id) {
  return request({
    url: '/logistics/company/getDetail',
    method: 'post',
    data: id 
  })
}

export function saveCompany(id) {
  return request({
    url: '/logistics/company/save',
    method: 'post',
    data: id
  })
}

export function removeCompanyByID(id) {
  return request({
    url: '/logistics/company/remove',
    method: 'post',
    data: id
  })
}

export function changeStatusByCompanyID(id) {
  return request({
    url: '/logistics/company/change-status',
    method: 'post',
    data: id
  })
}

